package com.brainhealth.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wll
 */
public enum AnswerTypeEnum {
    NOT_RIGHT(0, "不正确"), RIGHT(1, "正确"),CONTINUE_CHAT(2,"继续聊天");
    private final int code;
    private final String info;

    AnswerTypeEnum(int code, String info) {
        this.code = code;
        this.info = info;
    }

    public int getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    /**
     * 获取报告编码列表
     *
     * @return
     */
    public static List<Integer> getAnswerTypeCodeList() {
        List<Integer> list = new ArrayList<>(3);
        for (AnswerTypeEnum answerTypeEnum : AnswerTypeEnum.values()) {
            list.add(answerTypeEnum.code);
        }
        return list;
    }
}
